/**
 * $Revision: 1.0 $
 * $Author: Eric Yang $
 * $Date: Aug 2, 2009 4:21:15 PM $
 *
 * Author: Eric Yang
 * Date  : Aug 2, 2009 4:21:15 PM
 *
 */
package com.gooex.domain.organization;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * The top authority is Area.<br>
 * 
 * @author Eric Yang
 * @version 1.0
 */
public class Area extends AuthorizedObject implements Serializable {
	/** TODO comment */
	private List<Group> groups = new ArrayList<Group>();

	/** TODO comment */
	public void addGroup(Group group) {
		if (!groups.contains(group)) {
			groups.add(group);
			group.setArea(this);
		}
	}

	public List<Group> getGroups() {
		return groups;
	}

	public void setGroups(List<Group> groups) {
		this.groups = groups;
	}
}
